from django.db import models

# Create your models here.

# 用户模型类
class User(models.Model):
    username = models.CharField(max_length=16)
    password = models.CharField(max_length=32)

# 初始化用户数据
def user_data():
    for i in range(5):
        User.objects.create(
            username='name%s' % i,
            password='pass%s' % i,
        )